#include <stdio.h>
#include <string.h>

int main(int argc, char **argv)
{
    char *name = NULL;
    char buf[100] = { 0 };
    char buf2[100] = { 0 };

    sprintf(buf, "name:%s", name);
    printf("buf:%s\n", buf);
    printf("strlen(buf):%d\n", strlen(buf));

    //sprintf(buf2, "name:'%c'", 0);   //output: name:'
    sprintf(buf2, "name:'%c'", 'a');   
    printf("buf2:%s\n", buf2);
    printf("strlen(buf2):%d\n", strlen(buf2));


    return 0;
}
